export const getFlowDefine = `select
  flow_id as flowId,
  flow_name as flowName,
  description as description,
  define_data as defineData,
  schema_code as schemaCode
  from flow_define
  where flow_id = :flowId and p_delete = 0
`;
export const openFlow = `update form set
  flow_id = :flowId,
  flow_opened = 1
  where object_id = :schemaCode
`;
export const closeFlow = `update form set
  flow_opened = 0
  where object_id = :schemaCode
`;
export const createFlowDefine = `insert into flow_define
  (flow_id, flow_name, description, define_data, schema_code)
  values (:flowId, :flowName, :description, :defineData, :schemaCode)
`;
export const saveFlow = `update flow_define set
  flow_name = :flowName,
  description = :description,
  define_data = :defineData
  where flow_id = :flowId
`;
